//
//  AppDelegate_Shared.h
//  aftertaste
//
//  Created by Someone Else on 12/19/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import "RemoteOutput.h"


@interface AppDelegate_Shared : NSObject <
	UIApplicationDelegate,
	UIWebViewDelegate
> {
    
    UIWindow *window;
    UIWebView *webView;
    RemoteOutput *remoteOutput;
    
@private
    NSManagedObjectContext *managedObjectContext_;
    NSManagedObjectModel *managedObjectModel_;
    NSPersistentStoreCoordinator *persistentStoreCoordinator_;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UIWebView *webView;

@property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain, readonly) NSManagedObjectModel *managedObjectModel;
@property (nonatomic, retain, readonly) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (NSURL *)applicationDocumentsDirectory;
- (void)saveContext;
- (void) unHook:(NSString*)hook;
- (NSString *)escapeString: (NSString*)s;
- (NSString *)unescapeString: (NSString*)s;
- (NSString *)newUUID;

@end

